package com.lvbaoins.creditapp.core.filter;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * @author : gjb
 * @description:
 * @date : 2020-11-09 17:56
 * @version: : v1.0
 */
public class ParamsFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        ParameterRequestWrapper parmsRequest = new ParameterRequestWrapper(
                (HttpServletRequest) servletRequest);
        filterChain.doFilter(parmsRequest, servletResponse);

    }

    @Override
    public void destroy() {

    }
}
